package com.ruoyi.project.search.viewStockDetail.service;

import com.ruoyi.project.search.viewStockDetail.domain.ViewStockDetail;

import java.util.List;

/**
 * 库存明细Service接口
 * 
 * @author ruoyi
 * @date 2023-06-02
 */
public interface IViewStockDetailService 
{
    /**
     * 查询库存明细
     * 
     * @param stockId 库存明细主键
     * @return 库存明细
     */
    public ViewStockDetail selectViewStockDetailByStockId(String stockId);

    /**
     * 查询库存明细列表
     * 
     * @param viewStockDetail 库存明细
     * @return 库存明细集合
     */
    public List<ViewStockDetail> selectViewStockDetailList(ViewStockDetail viewStockDetail);

    /**
     * 新增库存明细
     * 
     * @param viewStockDetail 库存明细
     * @return 结果
     */
    public int insertViewStockDetail(ViewStockDetail viewStockDetail);

    /**
     * 修改库存明细
     * 
     * @param viewStockDetail 库存明细
     * @return 结果
     */
    public int updateViewStockDetail(ViewStockDetail viewStockDetail);

    /**
     * 批量删除库存明细
     * 
     * @param stockIds 需要删除的库存明细主键集合
     * @return 结果
     */
    public int deleteViewStockDetailByStockIds(String stockIds);

    /**
     * 删除库存明细信息
     * 
     * @param stockId 库存明细主键
     * @return 结果
     */
    public int deleteViewStockDetailByStockId(String stockId);

    int assignOut(String stockId);
}
